package com.xiaozheng.service.impl;

import com.xiaozheng.service.AccountService;

import java.util.*;

/**
 * @Package: com.xiaozheng.coupling.service.impl
 * @ClassName: AccountServiceImpl
 * @Author: 小政同学    QQ:xiaozheng666888@qq.com
 * @CreateTime: 2020/9/19 18:10
 * @What_is_this_file_for: 业务层实现类
 * @Description: 描述
 */
public class ComplexAccountServiceImpl implements AccountService {


    //private AccountDao dao = new AccountDaoImpl();
    //private AccountDao dao = (AccountDao) BeanFactory.getBean("accountDao");

    private String[] myStrs;
    private List<String> myList;
    private Set<String> mySet;
    private Map<String,String> myMap;
    private Properties myProps;

    public void setMyStrs(String[] myStrs) {
        this.myStrs = myStrs;
    }

    public void setMyList(List<String> myList) {
        this.myList = myList;
    }

    public void setMySet(Set<String> mySet) {
        this.mySet = mySet;
    }

    public void setMyMap(Map<String, String> myMap) {
        this.myMap = myMap;
    }

    public void setMyProps(Properties myProps) {
        this.myProps = myProps;
    }


    /**
     * 模拟保存账户
     */
    @Override
    public void saveAccountService() {
        //dao.saveAccountService();
        System.out.println("Service中的saveAccountService方法执行");
        System.out.println("ComplexAccountServiceImpl{" +
                "myStrs=" + Arrays.toString(myStrs) +
                ", myList=" + myList +
                ", mySet=" + mySet +
                ", myMap=" + myMap +
                ", myProps=" + myProps +
                '}');
    }

}
